﻿using netDxf.Entities;

namespace MCPlatform.Dxf.Interfaces
{
    /// <summary>  
    /// 表示能够写入DXF文件的接口
    /// </summary>  
    public interface IDxfWriter
    {
        /// <summary>  
        /// 将实体集合写入到指定的DXF文件中
        /// </summary>  
        /// <param name="entities">要写入的实体集合</param>  
        /// <param name="filePath">要写入的DXF文件的路径</param>  
        void WriteToFile(List<EntityObject> entities, string filePath);

        /// <summary>  
        /// 将实体集合写入到指定的文本流中 
        /// </summary>  
        /// <param name="entities">要写入的实体集合</param>  
        /// <param name="stream">要写入的文本流</param>  
        void WriteToStream(List<EntityObject> entities, System.IO.Stream stream);

    }
}
